import 'package:stock_check/common/model/Works.dart';
import 'package:stock_check/common/model/app.dart';
import 'package:stock_check/common/model/userInfo.dart';
import 'userReducer.dart';
import 'appReducer.dart';
import 'CheckDevicesReducer.dart';

class StockState{
  UserInfo userInfo;
  App appInfo;
  Works worksInfo;
  StockState({this.userInfo,this.appInfo,this.worksInfo});
}

StockState appReducer(StockState state, action){
  return StockState(
      userInfo:userReducer(state.userInfo, action),
      appInfo: updateAppReducer(state.appInfo,action),
      worksInfo:updateCheckDevicesReducer(state.worksInfo,action)
  );
}

